package com.ruoyi.operation.order.management.service;

import com.ruoyi.operation.order.management.domain.Management;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author wangzhiwei phone(WeChat)):15062775766
 * @date 2020/5/3 17:04
 */
public interface IManagementService {

    /**
     * 分页查询所有的营销数据
     * @param management
     * @return
     */
    List<Management> findAll(Management management);

    /**
     * 修改联系状态
     * @param management
     * @return
     */
    int changeStatus(Management management);

    /**
     * 修改打开的状态
     * @param dataId
     */
    int changeIsOPen( String dataId);

    /**
     * 根据id查询对应的对象
     * @param dataId
     * @return
     */
    Management findById(String dataId);

    /**
     * 改变状态
     * @param management
     * @return
     */
    int noContact(Management management);

    /**
     * 根据id查询对应的联系了几次
     * @param dataId
     * @return
     */
    int contacNumber( String dataId );

    /**
     * 导出
     * @param management
     * @return
     */
    void exportExcel(Management management, HttpServletRequest request, HttpServletResponse response) throws  Exception;
}
